package io.xccit.mapper.impl;

import io.xccit.mapper.IUserMapper;
import io.xccit.pojo.User;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Xccit
 * @Date 2023-01-21
 * @Description
 */
@Data
public class UserMapperImpl implements IUserMapper {
    /**
     * 模拟一些假数据
     */
    @Override
    public List<User> findUserAll() {
        List<User> users = new ArrayList<>();
        users.add(new User(1,"admin","admin",21,"男","admin@admin.com"));
        users.add(new User(2,"root","admin",21,"男","admin@admin.com"));
        users.add(new User(3,"xccit","admin",21,"男","admin@admin.com"));
        users.add(new User(4,"devxcc","admin",21,"男","admin@admin.com"));
        return users;
    }
}
